package top.zhmq.goodsprovider.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import top.zhmq.commonmodule.model.Userorder;
import top.zhmq.goodsprovider.dao.OrderDao;

import java.util.List;

/**
 *
 *
 * @author Glory
 * @classname OrderController
 * @create 2021-06-06 19:56
 */

@RestController
public class OrderController {
    @Autowired
    OrderDao orderDao;

    @RequestMapping(value = "/getAllorder", method = RequestMethod.GET)
    public List<Userorder> getAllorder(@RequestParam(value = "uid") int uid) {
        return orderDao.getAllorder(uid);
    }
}